import request from '../utils/request';

//添加图书
export const bookAdd=(data,token) =>{
  return instance.post('/admin/books/add', data, {
    headers: {
      Authorization: `${token}`, 
    },
  });
}

//按图书名称查询
export const searchTitle=(data) =>{
  return request({
    url: '/admin/books/searchTitle',
    method: 'get',
    data
  });
}